/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_weatherdetail")
public class TWeatherdetail implements Serializable {
    private static final long serialVersionUID = 1L;
    @EmbeddedId
    protected TWeatherdetailPK tWeatherdetailPK;
    @Column(name = "weatherinfo")
    private String weatherinfo;
    @Column(name = "weatherindex")
    private String weatherindex;
    @Column(name = "weathericon")
    private String weathericon;
    public TWeatherdetailPK getTWeatherdetailPK() {
		return tWeatherdetailPK;
	}

	public void setTWeatherdetailPK(TWeatherdetailPK weatherdetailPK) {
		tWeatherdetailPK = weatherdetailPK;
	}

	public String getWeatherinfo() {
		return weatherinfo;
	}

	public void setWeatherinfo(String weatherinfo) {
		this.weatherinfo = weatherinfo;
	}

	public String getWeatherindex() {
		return weatherindex;
	}

	public void setWeatherindex(String weatherindex) {
		this.weatherindex = weatherindex;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((tWeatherdetailPK == null) ? 0 : tWeatherdetailPK.hashCode());
		result = prime * result
				+ ((updatetime == null) ? 0 : updatetime.hashCode());
		result = prime * result
				+ ((weathericon == null) ? 0 : weathericon.hashCode());
		result = prime * result
				+ ((weatherindex == null) ? 0 : weatherindex.hashCode());
		result = prime * result
				+ ((weatherinfo == null) ? 0 : weatherinfo.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TWeatherdetail other = (TWeatherdetail) obj;
		if (tWeatherdetailPK == null) {
			if (other.tWeatherdetailPK != null)
				return false;
		} else if (!tWeatherdetailPK.equals(other.tWeatherdetailPK))
			return false;
		if (updatetime == null) {
			if (other.updatetime != null)
				return false;
		} else if (!updatetime.equals(other.updatetime))
			return false;
		if (weathericon == null) {
			if (other.weathericon != null)
				return false;
		} else if (!weathericon.equals(other.weathericon))
			return false;
		if (weatherindex == null) {
			if (other.weatherindex != null)
				return false;
		} else if (!weatherindex.equals(other.weatherindex))
			return false;
		if (weatherinfo == null) {
			if (other.weatherinfo != null)
				return false;
		} else if (!weatherinfo.equals(other.weatherinfo))
			return false;
		return true;
	}

	public String getWeathericon() {
		return weathericon;
	}

	public void setWeathericon(String weathericon) {
		this.weathericon = weathericon;
	}

	@Column(name = "updatetime")
    private Date updatetime;
    
    public TWeatherdetail() {
    }

	

   
}
